#ifndef T_EXCEL_H
#define T_EXCEL_H
#include "xlsxdocument.h"
#include <QObject>

#define T_ExcelIns T_Excel::Instance()

class T_Excel : public QObject
{
    Q_OBJECT
public:
    explicit T_Excel(QObject *parent = nullptr);
    ~T_Excel();

    static T_Excel *Instance();

public:
    void ReadExcel(const QString &excel_path);
    void WriteExcel();

private:
    void writeData();

private:
    QXlsx::Document m_xlsx;
    QXlsx::Format m_format;
};

#endif // T_EXCEL_H
